package cn.iocoder.yudao.module.shop.controller.admin.appointment.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 店内预约 create VO")
@Data
public class AppointmentCreateReqVO {
    @Schema(description = "会员id")
    @NotNull(message = "会员id不能为空")
    private Long memberId;

    @Schema(description = "艾灸师id")
    @NotNull(message = "艾灸师id不能为空")
    private Long userId;

    @Schema(description = "项目id")
    @NotNull(message = "项目id不能为空")
    private Long itemId;

    @Schema(description = "项目数量")
    @NotNull(message = "数量不能为空")
    private Integer count;

    @Schema(description = "时间索引")
    @NotNull(message = "时间索引不能为空")
    private Integer timeIndex;


    @Schema(description = "预约日期")
    @NotNull(message = "预约日期不能为空")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime dateTime;

    @Schema(description = "备注")
    private String comment;

    @Schema(description = "店铺id")
    private Long tenantId;
}
